package com.xy.blog.article.domain.service.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author zanhonglei
 * @version V1.0
 * @Description: 分类
 * @date 2020/5/24
 */
@Data
public class ArticleCategoryBO {

    @JsonFormat(shape=JsonFormat.Shape.STRING )
    private Long id;

    private Long parentId;

    private String name;
    /**
     * 是否为叶子节点
     * 0 不是
     * 1 是
     */
    private Integer leaf;
    @JsonFormat(shape=JsonFormat.Shape.STRING,pattern ="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8" )
    private LocalDateTime createTime;
    @JsonFormat(shape=JsonFormat.Shape.STRING,pattern ="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8" )
    private LocalDateTime updateTime;

    List<ArticleCategoryBO> children;


}
